package com.huakang.entity;

import java.io.Serializable;

/**
 * docter
 * @author 
 */
public class Docter implements Serializable {
    /**
     * 医生编号
     */
    private Integer did;

    /**
     * 医生姓名
     */
    private String dname;

    /**
     * 性别
     */
    private String dsex;

    /**
     * 手机号码
     */
    private String docphone;

    /**
     * 部门编号
     */
    private Integer deid;

    /**
     * 身份证
     */
    private String didentify;

    /**
     * 科室id
     */
    private Integer kid;

    private static final long serialVersionUID = 1L;

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDsex() {
        return dsex;
    }

    public void setDsex(String dsex) {
        this.dsex = dsex;
    }

    public String getDocphone() {
        return docphone;
    }

    public void setDocphone(String docphone) {
        this.docphone = docphone;
    }

    public Integer getDeid() {
        return deid;
    }

    public void setDeid(Integer deid) {
        this.deid = deid;
    }

    public String getDidentify() {
        return didentify;
    }

    public void setDidentify(String didentify) {
        this.didentify = didentify;
    }

    public Integer getKid() {
        return kid;
    }

    public void setKid(Integer kid) {
        this.kid = kid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Docter other = (Docter) that;
        return (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname()))
            && (this.getDsex() == null ? other.getDsex() == null : this.getDsex().equals(other.getDsex()))
            && (this.getDocphone() == null ? other.getDocphone() == null : this.getDocphone().equals(other.getDocphone()))
            && (this.getDeid() == null ? other.getDeid() == null : this.getDeid().equals(other.getDeid()))
            && (this.getDidentify() == null ? other.getDidentify() == null : this.getDidentify().equals(other.getDidentify()))
            && (this.getKid() == null ? other.getKid() == null : this.getKid().equals(other.getKid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode());
        result = prime * result + ((getDsex() == null) ? 0 : getDsex().hashCode());
        result = prime * result + ((getDocphone() == null) ? 0 : getDocphone().hashCode());
        result = prime * result + ((getDeid() == null) ? 0 : getDeid().hashCode());
        result = prime * result + ((getDidentify() == null) ? 0 : getDidentify().hashCode());
        result = prime * result + ((getKid() == null) ? 0 : getKid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", did=").append(did);
        sb.append(", dname=").append(dname);
        sb.append(", dsex=").append(dsex);
        sb.append(", docphone=").append(docphone);
        sb.append(", deid=").append(deid);
        sb.append(", didentify=").append(didentify);
        sb.append(", kid=").append(kid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}